<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const object1 = {
            name: 'lisi',
            property1: 18
        }

        Object.defineProperty(object1, "property1", {
            value: 42,
            writable: false
        })

        console.log(object1);
    </script>
</body>

</html>